

/**
 * @see https://umijs.org/docs/max/access#access
 * */
export default function access(initialState) {
  const { currentUser, resourceCodes } = initialState ?? {};
  return true;
  // return {
  //     normalRouteFilter: (route) => {
  //     return resourceCodes.indexOf(route.code) > -1
  //   }
  // };
}